<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<c:if test="${not empty accommodations}">
    <c:forEach var="accommodation" items="${accommodations}">
        <div class="col-md-6">
            <div class="col-md-11 accommodationDiv">
                <!--<h4><a href="${pageContext.request.contextPath}/accommodation/edit/${accommodation.id}">${accommodation.title}</a></h4>-->
                <h4>${accommodation.title}</h4>
                <p>${accommodation.city.name}</p>
                <p>${accommodation.country.name}</p>
                <p>${accommodation.description}</p>
            </div>
        </div>
    </c:forEach>
</c:if>